package com.sinosoft.perfect.system._user.dao;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import com.sinosoft.perfect.common.system.BaseSqlSessionDaoSupport;
import com.sinosoft.perfect.system._.po.TUser;
import com.sinosoft.perfect.system._.po.TUserImg;
import com.sinosoft.perfect.system._.po.TUserInformation;
import com.sinosoft.perfect.system._.po.TUserRolebusinessRelation;
import com.sinosoft.perfect.system._.po.TUserRolesysRelation;
import com.sinosoft.perfect.system._.po.TUserUnitRelation;
import com.sinosoft.perfect.system._user.MapperSystemUser;
import com.sinosoft.perfect.system._user.formBean.UserForm;
import com.sinosoft.perfect.system._user.vo.UserStaticVO;
import com.sinosoft.perfect.system._user.vo.UserUnitVO;

public class UserDAOImpl extends BaseSqlSessionDaoSupport implements IUserDAO {

	private MapperSystemUser getMapperSystemUser() {
		return getSqlSession().getMapper(MapperSystemUser.class);
	}

	@Override
	public List<UserStaticVO> selectTUserStatic(UserStaticVO userStatic) throws SQLException {
		return getMapperSystemUser().selectTUserStatic(userStatic);
	}

	@Override
	public Object insertTUser(TUser tuser) throws SQLException {
		return getMapperSystemUser().insertTUser(tuser);
	}

	@Override
	public Object insertTUserInfo(TUserInformation tuserinfo) throws SQLException {
		return getMapperSystemUser().insertTUserInfo(tuserinfo);
	}

	@Override
	public Object insertTUserImg(TUserImg tuserimg) throws SQLException {
		return getMapperSystemUser().insertTUserImg(tuserimg);
	}

	@Override
	public Object insertTUserUnit(TUserUnitRelation tuserunit) throws SQLException {
		return getMapperSystemUser().insertTUserUnit(tuserunit);
	}

	@Override
	public Object insertTUserRoleBusiness(TUserRolebusinessRelation tuserrolebusiness) throws SQLException {
		return getMapperSystemUser().insertTUserRoleBusiness(tuserrolebusiness);
	}

	@Override
	public List<TUser> selectTUser(TUser tuser) throws SQLException {
		return getMapperSystemUser().selectTUser(tuser);
	}

	@Override
	public List<TUserInformation> selectTUserInfo(TUserInformation tuserinfo) throws SQLException {
		return getMapperSystemUser().selectTUserInfo(tuserinfo);
	}

	@Override
	public List<TUserImg> selectTUserImg(TUserImg tuserimg) throws SQLException {
		return getMapperSystemUser().selectTUserImg(tuserimg);
	}

	@Override
	public List<UserForm> selectTUserFromUnit(UserForm userForm) throws SQLException {
		return getMapperSystemUser().selectTUserFromUnit(userForm);
	}

	@Override
	public List<UserForm> selectTUserFromRoleBusiness(UserForm userForm) throws SQLException {
		return getMapperSystemUser().selectTUserFromRoleBusiness(userForm);
	}

	@Override
	public Object selectExistTUser(UserForm userform) throws SQLException {
		return getMapperSystemUser().selectExistTUser(userform);
	}

	@Override
	public Object selectExistTUserPassword(TUser user) throws SQLException {
		return getMapperSystemUser().selectExistTUserPassword(user);
	}

	@Override
	public Object selectExistTUserFromUnit(Map<String, String> map) throws SQLException {
		return getMapperSystemUser().selectExistTUserFromUnit(map);
	}

	@Override
	public Object selectExistTUserFromRoleBusiness(Map<String, String> map) throws SQLException {
		return getMapperSystemUser().selectExistTUserFromRoleBusiness(map);
	}

	@Override
	public Object selectExistTUserForUpdate(TUser user) throws SQLException {
		return getMapperSystemUser().selectExistTUserForUpdate(user);
	}

	@Override
	public Object selectTUserSortNumFromUnit(Map<String, String> map) throws SQLException {
		return getMapperSystemUser().selectTUserSortNumFromUnit(map);
	}

	@Override
	public Object selectTUserMAXSortNumFromUnit(String unitId) throws SQLException {
		return getMapperSystemUser().selectTUserMAXSortNumFromUnit(unitId);
	}

	@Override
	public Object selectTUserSortNumFromRoleBusiness(Map<String, String> map) throws SQLException {
		return getMapperSystemUser().selectTUserSortNumFromRoleBusiness(map);
	}

	@Override
	public Object selectTUserMAXSortNumFromRoleBusiness(String roleBusinessId) throws SQLException {
		return getMapperSystemUser().selectTUserMAXSortNumFromRoleBusiness(roleBusinessId);
	}

	@Override
	public List<UserUnitVO> selectTUserAndTUnit(String unitId) throws SQLException {
		return getMapperSystemUser().selectTUserAndTUnit(unitId);
	}

	@Override
	public List<TUser> selectTUserDetached(TUser tuser) throws SQLException {
		return getMapperSystemUser().selectTUserDetached(tuser);
	}

	@Override
	public Object selectTUserNameFromUserOrUserInfo(String userMainId) throws SQLException {
		return getMapperSystemUser().selectTUserNameFromUserOrUserInfo(userMainId);
	}

	@Override
	public int updateTUserByPK(TUser tuser) throws SQLException {
		return getMapperSystemUser().updateTUserByPK(tuser);
	}

	@Override
	public int updateTUserInfoByPK(TUserInformation tuserinfo) throws SQLException {
		return getMapperSystemUser().updateTUserInfoByPK(tuserinfo);
	}

	@Override
	public int updateTUserImg(TUserImg tuserimg) throws SQLException {
		return getMapperSystemUser().updateTUserImg(tuserimg);
	}

	@Override
	public int deleteTUser(String userId) throws SQLException {
		return getMapperSystemUser().deleteTUser(userId);
	}

	@Override
	public int deleteTUserInfo(String userId) throws SQLException {
		return getMapperSystemUser().deleteTUserInfo(userId);
	}

	@Override
	public int deleteTUserImg(String userId) throws SQLException {
		return getMapperSystemUser().deleteTUserImg(userId);
	}

	@Override
	public int deleteTUserUnit(TUserUnitRelation tuserunit) throws SQLException {
		return getMapperSystemUser().deleteTUserUnit(tuserunit);
	}

	@Override
	public int deleteTUserRoleSystem(TUserRolesysRelation tUserRoleSystem) throws SQLException {
		return getMapperSystemUser().deleteTUserRoleSystem(tUserRoleSystem);
	}

	@Override
	public int deleteTUserRoleBusiness(TUserRolebusinessRelation tuserrolebusiness) throws SQLException {
		return getMapperSystemUser().deleteTUserRoleBusiness(tuserrolebusiness);
	}

	@Override
	public List<TUser> selectTUsersInfoByUserids(String userids)
			throws SQLException {
		return getMapperSystemUser().selectTUsersInfoByUserids(userids);
	}

	@Override
	public List<UserForm> selectTUserFromRoleSystem(String roleSystemId)
			throws SQLException {
		return getMapperSystemUser().selectTUserFromRoleSystem(roleSystemId);
	}

}
